home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 12
/
Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso
/
Aminet
/
util
/
moni
/
top.lha
/
Top
/
top_stub.asm
< prev
next >
Wrap
Assembly Source File
|
1996-03-17
|
355b
|
31 lines
;
; top_stub.asm
;
; Gary Duncan; March 1996
;
; This is simply a wrapper which saves and restores
; registers around a C-function (my_switch).
;
;
csect text,0
XDEF _wrapper
XDEF _oldswitch
XREF _myswitch
_wrapper:
movem.l d0-d7/a0-a6,-(sp)
jsr _myswitch
movem.l (sp)+,d0-d7/a0-a6
move.l _oldswitch,-(sp)
rts
_oldswitch: dc.l 0
end